QT -= gui

CONFIG += c++17 console
CONFIG -= app_bundle

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

QMAKE_CXXFLAGS += -DGLIBCXX_USE_CXX11_ABI=1
CONFIG += no_keywords

SOURCES += \
        main.cpp

unix{
    LIBTORCH_PATH = /home/catdog/libtorch
    INCLUDEPATH += $$LIBTORCH_PATH/include/torch/csrc/api/include \
                    $$LIBTORCH_PATH/include \


    LIBS += -L$$LIBTORCH_PATH/lib -ltorch -ltorch_cpu -lc10
}

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
